
{% include 'admin_script.html' %}



<div id="adminUserDiv">

	<div class="tabHead">Admin Tools</div>
	<div id="formResult">
		
	</div>
	<div id="adminOption">
		<select id="adminChoice" >
			<option value="NotSelected">- Select Admin Tool -</option>
			<optgroup label="User Tools">
				<option value="userAdd">Add New User</option>
				<option value="userEdit">Modify Existing User</option>
				<option value="userDel">Delete User</option>
			</optgroup>
			<optgroup label="Room Tools">
				<option value="roomAdd">Add New Meeting Room</option>
				<option value="roomEdit">Modify Meeting Room</option>
			</optgroup>
		</select> 	
	</div>
	
	
	<div id="adminTool" >
		
		
		<!-- ADD USER -->
		<div id="userAddDiv" class='adminTool formValidate'>
			<div id="toolHdr">Add New User</div>
			<form action="/admin/userAddWs" name="userAddFrm" id="userAddID" method="post">
				Login Name <br><input type="text" name="name" style="width:240px" class="required" minlength="3" /><br>
				Password <br> <input type="password" name="password" style="width:240px" class="required" minlength="5" /><br>
				First Name <br><input type="text" name="namefirst" style="width:240px" class="required" minlength="3" /><br>
				Last Name <br><input type="text" name="namelast" style="width:240px" class="required" minlength="3" /><br>
				Email <br><input type="text" name="email" style="width:240px" class="required email" /><br>
				Administrator <br><input type="checkbox" value="1" name="IsAdmin"  /><br>
				<input type="button" id="addUserBtn" value="Create User"/>
				<input type="reset" value="Reset Fields"/>
				
			</form> 
		</div>
		
		
		<div id="userEditDiv" class='adminTool'>
			<div id="toolHdr">Edit Existing User</div>
			<form action="/admin/userEditWs" name="userEditFrm" id="userEditID" method="post">
				<div><label for="eventUser">Select User Name to Modify</label></div>
				<div>
				<select id="selUserId" class="editUser" name="selEditUser">
					<option value="NoValue" selected="selected" >Select User</option>
				</select>		
				</div>
			
				Login Name <br><input type="text" id="editName" name="uname" class="required" /><br>
				<!--Password <br><input type="text" id="editPass" name="password" class="required" /><br> -->
				First Name <br><input type="text" id="editFirst" name="namefirst" class="required" /><br>
				Last Name <br><input type="text" id="editLast" name="namelast" class="required" /><br>
				Email <br><input type="text" id="editEmail" name="email" class="required" /><br>
				Administrator <br><input type="checkbox" id="editAdmin" name="IsAdmin" value="1"/><br>
				<input type="hidden" id="editUID" name="userID">
				<input type="button" id="modUserBtn"  value="Update User"/>
				<input type="reset" value="Reset Fields"/>
			</form>
		</div>
		
		
		<div id="userDelDiv" class='adminTool'>
			<div id="toolHdr">Delete a User</div>
			<form action="/admin/userDelWs" name="userDelFrm" id="userDelID" method="post">
				<div><label for="eventUser">Select User Name to Delete</label></div>
				<div>
				<select id="selUserId" name="delUserId">
					<option value="NoValue" selected="selected" >Select User</option>
				</select>		
				</div>
				<input type="button" id="delUserBtn" value="Delete User"/>
				<input type="reset" value="Reset Fields"/>
			</form>
		</div>
		
		<!-- ADD ROOM -->
		<div id="roomAddDiv" class='adminTool'>
			<div id="toolHdr">Add New Meeting Room</div>
			<form action="/admin/roomAddWs" name="roomAddFrm" id="roomAddID" method="post">
				Display Name <br><input type="text"  name="rname" style="width:240px" class="required" minlength="6" /><br>
				Description <br><input type="text"  name="rdescription" style="width:240px" class="required" minlength="6" /><br>
				Size <br><input type="text"   name="rsize" style="width:40px" class="required  number" /><br>
				<input type="button" id="addRoomBtn" value="Create Room"/>
				<input type="reset" value="Reset Fields"/>
			</form>
		</div>
		
		<!-- EDIT ROOM -->
		<div id="roomEditDiv" class='adminTool'>
			<div id="toolHdr">Modify Existing Meeting Room</div>
			<form action="/admin/roomEditWs" name="roomEditFrm" id="roomEditID" method="post">
				<div><label for="eventUser">Room(s)</label></div>
				<div>
					<select id="selRoomId" name="selRoom" class="editRoom" style="width:260px" >
						<option value="NoValue" selected="selected" >Select Room</option>
					</select>		
				</div>
				
				Display Name <br><input type="text" id="editRName" name="rname" style="width:240px" class="required" minlength="6" /><br>
				Description <br><input type="text" id="editRDesc" name="rdescription" style="width:240px" class="required" minlength="6" /><br>
				Size <br><input type="text" id="editRSize" name="rsize" style="width:40px" class="required  number" /><br>
				<input type="hidden" id="editRID" name="roomID">
				<input type="button" id="modRoomBtn" value="Update Room"/>
				<input type="reset" value="Reset Fields"/>
			</form>
		</div>

		<div id="roomDelDiv" class='adminTool'>
			<div id="toolHdr">Delete Meeting Room</div>
			<form action="/admin/roomDelWs" name="roomDelFrm" id="roomDelID" method="post">
				<div><label for="eventUser">Meeting Room Name</label></div>
				<div>
					<select id="selRoomId" name="selRoom" style="width:260px" >
						<option value="NoValue" selected="selected" >Select Room</option>
					</select>	
				</div>
				<input type="button" id="delRoomBtn" value="Remove Room"/>
				<input type="reset" value="Reset Fields"/>
			</form>
		</div>

		
	</div>

</div>